package com.think.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/*
 *
 * 注意：
 * 1、Configuration所在包需要和Application启动类所在包平级或下面
 * 2、模块之间注意在依赖关系，web依赖service层
 * 3、这种方式用jar启动失败，找不到SiteConfig类，原因未知，在idea中用app或tomcat均可成功读取
 * */
//@Component
//@EnableConfigurationProperties
//@ConfigurationProperties
//@ConfigurationProperties(prefix = "sdk")
//@PropertySource("classpath:sdk-client.yaml")

/*@Configuration
//如果只有一个主配置类文件，@PropertySource可以不写
@PropertySource(value = {"classpath:sdk-client.yaml"}, encoding = "utf-8")
@ConfigurationProperties(prefix = "sdk")*/
public class TestConfig {
    private Logger logger = LoggerFactory.getLogger("service");
    //@Value("${sdk.test}")
    private String sdk;

    public String getSdk() {
        return sdk;
    }

    public void setSdk(String sdk) {
        this.sdk = sdk;
    }

    private String test;

    public String getTest() {
        return test;
    }

    public void setTest(String test) {
        this.test = test;
    }
}
